
#include<iostream>
using namespace std;
#include<cmath>

#include"library.h"

double f(double x){
	return x*x-2*x;
}

int main(){
	double x = findmin(f, 0, 0.1, 1E-6);
	cout<<" fmin is at x="<<x<<", f(x)="<<f(x)<<endl;
	return 0;
}
